<!DOCTYPE html>
<html>
	<head>
		<title><?php if( isset( $title ) ) echo $title; ?></title>
		<link rel="stylesheet" type="text/css" href="/css/styles.css" />
		<!--[if IE 6]>
			<link rel="stylesheet" type="text/css" href="/css/ie6.css" />
			<script src="/js/DD_belatedPNG_0.0.8a-min.js"></script>
			<script>
			DD_belatedPNG.fix('.png');
			</script>
		<![endif]--> 
		<script>
			<?php if( isset( $styles ) ) echo $styles ?>
		</script>
		<style>
			<?php if( isset( $script ) ) echo $script ?>
		</style>
	</head>
	<body>
		<div id="container">
			<div id="header_container">
				<div id="header">
					<div id="logo">
						<a href="/"><img src="/images/logo.png" class="png" /></a>
					</div>
					<div id="globalnav">
						<ul>
							<li><a href="/member/membersIndex">Home</a></li>
							<li><a href="/aboutus">About Us</a></li>
							<li><a href="/features">Features</a></li>
							<li><a href="/faq">FAQ</a></li>
<?php	if( isset( $_SESSION['stud_no'] ) ) : ?>
							<li><?php echo $_SESSION['firstname'] ?>(<a class="subdued" href="/logout">Logout</a>)</li>
<?php else : ?>
							<li><a href="/login">Login</a></li>
<?php endif; ?>
						</ul>	
					</div>
				</div>
			</div>
			<div id="main_container">
				<div id="usernav" class="png">
					<ul>
						<li><a class="<?php if( isset($highlight) && $highlight === 'orginfo' )  echo 'highlight' ?>" href="/org/view/<?php if( isset($currentOrg) ) echo $currentOrg ?>" class="png">Org Home</a></li>
						<li><a class="<?php if( isset($highlight) && $highlight === 'organnouncements' )  echo 'highlight' ?>" href="/org/view/<?php if( isset($currentOrg) ) echo $currentOrg ?>/announcements" class="png">Announcements</a></li>
						<li><a class="<?php if( isset($highlight) && $highlight === 'orgevents' )  echo 'highlight' ?>" href="/org/view/<?php if( isset($currentOrg) ) echo $currentOrg ?>/events" class="png">Events</a></li>
						<li><a class="<?php if( isset($highlight) && $highlight === 'orgforum' )  echo 'highlight' ?>" href="/org/forums/<?php if( isset($currentOrg) ) echo $currentOrg ?>" class="png">Forum</a></li>
						<li><a class="<?php if( isset($highlight) && $highlight === 'orgtutorial' )  echo 'highlight' ?>" href="/org/view/<?php if( isset($currentOrg) ) echo $currentOrg ?>/tutorials" class="png">Tutorials</a></li>
						<li><a class="<?php if( isset($highlight) && $highlight === 'orgmember' )  echo 'highlight' ?>" href="/org/view/<?php if( isset($currentOrg) ) echo $currentOrg ?>/memberlist" class="png">Member list</a></li>
<?php if( isset( $orgAdmin ) && $orgAdmin === true ) : ?>
						<li><a href="/member/activities" class="png">Course Options</a></li>
<?php endif; ?>
					</ul>	
				</div>

				<div id="main">
					<h1><?php if( isset( $heading ) ) View::show( $heading ); ?></h1>
					<?php if( isset( $content ) ) View::show( $content ); ?>
				</div>
			</div>
			<div id="footer_container">
				<div id="footer">
					<ul>
						<li><a href="/aboutus">About Us</a></li>
						<li><a href="/features">Features</a></li>
						<li><a href="/faq">FAQ</a></li>
					</ul>
					<span id="copyinfo">Copyright &copy; FEELS 2011</span>
				</div>
			</div>
		</div>
	</body>
</html>